package org.csu.jpetstore_front.service;

import org.csu.jpetstore_front.common.CommonResponse;
import org.csu.jpetstore_front.entity.Account;
import org.csu.jpetstore_front.vo.AccountVO;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.awt.font.ShapeGraphicAttribute;
import java.util.Map;

public interface AccountService {
    CommonResponse<AccountVO> login(AccountVO accountVO);

    CommonResponse<AccountVO> register(@RequestBody AccountVO accountVO);

    CommonResponse<String> checkUsernameIsExists(String username);

    CommonResponse<AccountVO> changeAccountInformation(AccountVO accountVO);

    CommonResponse<AccountVO> findAccount(@PathVariable("username") String username);
}
